﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<TITLE>添加词汇信息</TITLE>
	    
 	<script type="text/javascript" src="ny/js/jquery.min.js"></script>
<script type="text/javascript" src="ny/js/bootstrap.min.js"></script>
<script src="ny/js/jconfirm/jquery-confirm.min.js"></script>
<link href="ny/css/bootstrap.min.css" rel="stylesheet">
<link href="ny/css/materialdesignicons.min.css" rel="stylesheet">
<link href="ny/css/style.min.css" rel="stylesheet">
<link rel="stylesheet" href="ny/js/jconfirm/jquery-confirm.min.css"> 
	</head>
<%
  String id="";
  id=request.getParameter("id");
   %>

<script language="javascript">

function gows()
{
	document.location.href="cihuixinxi_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
	if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"；", "");
	}
	else
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"；";
	}
}
</script>
<body>

<div >
              <div class="card-header"><h4>词汇信息添加</h4></div>
              <div class="card-body">
                <form class="form-horizontal" action="addCihuixinxi.do" method="post" id="form1" name="form1" onSubmit="return checkform();">
		<div class='form-group' ><label class='col-md-3 control-label'>方言名称</label><div class='col-md-7'><input type='text' class='form-control' value='' name='fangyanmingcheng' id='fangyanmingcheng' style='width:45%' placeholder='请输入方言名称' /></div></div>
		      <div class='form-group' ><label class='col-md-3 control-label'>普通话名称</label><div class='col-md-7'><input type='text' class='form-control' value='' name='zhongwenmingcheng' id='zhongwenmingcheng' style='width:45%' placeholder='请输入普通话名称' /></div></div>
		<div class='form-group' ><label class='col-md-3 control-label'>音节</label><div class='col-md-7'><input type='text' class='form-control' value='' name='yinjie' id='yinjie' style='width:45%' placeholder='请输入音节' /></div></div> 
		<div class='form-group' ><label class='col-md-3 control-label'>音频</label><div class='col-md-7'><input name='yinpin' type='text' id='yinpin' data-place='right' class='form-control'  style='width:75%; float:left;'/>&nbsp;<input type='button' class='btn btn-primary' value='上传' onClick="up('yinpin')"/></div></div>
		 
		<div class='form-group' ><label class='col-md-3 control-label'>详情</label><div class='col-md-7'><textarea id='xiangqing' placeholder='' name='xiangqing' class='form-control'  style='width:75%'></textarea></div></div>
		
				 <div class="form-group">
                    <div class="col-md-9 col-md-offset-3">
                      <button class="btn btn-primary" type="submit" onClick="return checkform();"><i class="mdi mdi-check"></i> 添加</button>
                    </div>
                  </div>
                </form>
              </div>
            </div>
<p>&nbsp;</p>
</body>
</html>




<script language=javascript >  
 
 function checkform(){  
 
 var zhongwenmingchengobj = document.getElementById("zhongwenmingcheng"); if(zhongwenmingchengobj.value==""){$.alert('普通话名称不能为空');return false;}else{} 
 
	var fangyanmingchengobj = document.getElementById("fangyanmingcheng"); if(fangyanmingchengobj.value==""){$.alert('方言名称不能为空');return false;}else{} 
	


return true;   
}   
popheight=450;
</script>  